package com.ccb.sc.common.modules.order.service.impl;

import com.ccb.sc.common.modules.order.service.IOrderItemService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ccb.sc.common.modules.order.entity.OrderItem;
import com.ccb.sc.common.modules.order.mapper.OrderItemMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 订单项 服务实现类
 * </p>
 *
 * @author ken
 * @since 2020-09-25
 */
@Service
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem> implements IOrderItemService {

    @Override
    public List<OrderItem> findByOrderId(String orderId) {
        return this.list(new QueryWrapper<OrderItem>().lambda().eq(OrderItem::getOrderId, orderId));
    }
}
